﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Clipboard.Model.Enum
{
    public enum TypeEnum
    {
        [EnumDescription("文本")]
        Text = 0,

        //[EnumDescription("图像")]
        //Imges = 1,

        [EnumDescription("文件")]
        Document = 2,

        //[EnumDescription("声音")]
        //Sound = 3
    }



    //特性
    [AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
    sealed class EnumDescriptionAttribute : Attribute
    {
        public string Description { get; }

        public EnumDescriptionAttribute(string description)
        {
            Description = description;
        }
    }
}
